<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta charset="ISO-8859-1">
    <title>教师管理系统</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <h1>教师管理</h1>
    <hr>
    <h2>新增教师</h2>
    <form action="#" th:action="@{/Teacher/saveTeacher}" th:object="${teacher}" method="POST">
        <input type="text" th:field="*{no}" placeholder="教师编号" class="form-control mb-4 col-4">
        <input type="text" th:field="*{name}" placeholder="姓名" class="form-control mb-4 col-4">
        <input type="text" th:field="*{age}" placeholder="年龄" class="form-control mb-4 col-4">
        <input type="text" th:field="*{sex}" placeholder="性别" class="form-control mb-4 col-4">
        <button type="submit" class="btn btn-info col-2"> 保存</button>
    </form>
    <hr>
    <a th:href="@{/Teacher/}"> 回到教师列表</a>
</div>
</body>
</html>